package action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import servlet.IServletAction;
import bean.MainPageEntity;
import bean.ServletActionForward;
import dao.MainDAO;

public class AccountPopupAction implements IServletAction {

	@Override
	public ServletActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {
		ServletActionForward forward = new ServletActionForward();
		forward.setURL("/accountPopup.jsp");
		forward.setValue(true);
		
		List<MainPageEntity> list = new MainDAO().getAccountCampanyList();
		
		request.setAttribute("list", list);		
		
		return forward;
	}

}
